package com.euphoria;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class AddEvent extends TabActivity {
	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.addevent);
		
		Resources res = getResources();
	    TabHost tabHost = getTabHost();  // The activity TabHost
	    TabHost.TabSpec spec;  // Reusable TabSpec for each tab
	    Intent intent;  // Reusable Intent for each tab

	    // Create an Intent to launch an Activity for the tab (to be reused)
	    intent = new Intent().setClass(this, com.euphoria.AddEventDetails.class);
	    // Initialize a TabSpec for each tab and add it to the TabHost
	    spec = tabHost.newTabSpec("AddEventDetails").setIndicator("Details",
	                      res.getDrawable(R.layout.ic_tab_ehost))
	                  .setContent(intent);
	    tabHost.addTab(spec);
/*
	    // Do the same for the other tabs
	    intent = new Intent().setClass(this, com.euphoria.EOrganize.class);
	    spec = tabHost.newTabSpec("EOrganize").setIndicator("Facilitate",
	                      res.getDrawable(R.layout.ic_tab_eorganize))
	                  .setContent(intent);
	    tabHost.addTab(spec);

	    intent = new Intent().setClass(this, com.euphoria.ESettings.class);
	    spec = tabHost.newTabSpec("ESettings").setIndicator("Settings",
	                      res.getDrawable(R.layout.ic_tab_esettings))
	                  .setContent(intent);
	    tabHost.addTab(spec);

	    tabHost.setCurrentTab(0);
	    */
		
		
	}
}
